import { uniFeatch } from "./uni-fetch"

// 登录
export const loginAPI = (data) => {
  if (!data.account || !data.password) return
  // return uniFeatch({
  //   url: "/driver/login/account",
  //   method: 'POST',
  //   data,
  // })
  return uniFeatch.post("/driver/login/account", data)
}

// 用户信息
export const profileAPI = () => {
  return uniFeatch.get("/driver/users")
}

// 任务数据
export const taskReportAPI = (data) => {
  return uniFeatch.get("/driver/users/taskReport", data, )
}

// 车辆信息
export const truckInfoAPI = () => {
  return uniFeatch.get("/driver/users/truck")
}